:root {
    --primary-header-color: #E7ECF0;
    --menu-selection-color: rgba(0, 0, 0, 0.1);
    --menu-hover-color: rgba(0, 0, 0, 0.2);
    --primary-color-dark: #004d6e;
    --primary-color-light: #f57d30;
    --secondary-color-dark: #9c4a45;
    --secondary-color-dark2: #664575;
    --secondary-color-light1: #a6ba54;
    --secondary-color-light1: #2bb8d9;
    --off-white-color: #f8f9fb;
    --NORTH_SEA_BLUE_140: #103143;
    --NORTH_SEA_BLUE_100: #004D6E;
    --NORTH_SEA_BLUE_90: #2A5D7C;
    --NORTH_SEA_BLUE_80: #446E89;
    --NORTH_SEA_BLUE_70: #5B7E97;
    --NORTH_SEA_BLUE_60: #7391A7;
    --NORTH_SEA_BLUE_50: #8AA3B5;
    --NORTH_SEA_BLUE_40: #A1B4C4;
    --NORTH_SEA_BLUE_30: #B8C6D2;
    --NORTH_SEA_BLUE_20: #CFD9E1;
    --NORTH_SEA_BLUE_10: #E7ECF0;
    --NORTH_SEA_BLUE_5: #F3F5F7;
    --WHITE: #FFFFFF;
    --LIGHT_GREY: #ECECEC;
    --SINASAPPEL_ORANGE: #F57D30;
    --DARK_GREY: #808080;
    --DARK_GREEN: #006E5A;
    --LIGHT_BLUE_100: #0996D2;
    --PURPLE: #4926C5;
    --DARK_PINK: #9526C5;
    --RED: #FA5959;
    overflow: hidden;
}

html, body {
    font-family: 'Barlow', sans-serif !important;
    font-style: normal;
    background-color: var(--NORTH_SEA_BLUE_5);
    color: var(--NORTH_SEA_BLUE_140);
}

body.loading {
    cursor: wait;
}

h1, h2, h3, h4, h5, h6, p, div {
    font-family: 'Barlow', sans-serif;
    font-style: normal;
}

.vertical-flexbox {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%; 
}

.horizontal-flexbox {
    display: flex;
    flex-direction: row;
    height: 100%;
    width: 100%;
}

.child-flexible {
    flex: 1; /* Allow the child to grow and fill the available space */
}

.vertical-scroll {
    overflow-y: auto; /* Enable vertical scrolling */
    max-height: 100vh; /* Set a max height to control the scrollable area */
}

.text-section {
    margin: 30px max(50% - 1000px/2, 30px);
}

/* give the sidebar some shadow */

#sidebar {
    box-shadow: 0px 0px 5px var(--NORTH_SEA_BLUE_20);
    background-color: var(--off-white-color);
    z-index: 1000;
}

.navbar {
    display: block;
    box-sizing: border-box;
    background-color: var(--off-white-color);
    padding: 0px;
    color: var(--primary-header-color);
    font-family: 'Barlow', sans-serif !important;
    font-style: normal;
    font-weight: 700;
}

#home-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 30px;
    border-width: 0px 0px 1px 0px;
    border-color: var(--NORTH_SEA_BLUE_20);
    border-radius: 0px;
}

#home-link:hover {
    border-width: 0px 0px 1px 0px;
    border-color: var(--NORTH_SEA_BLUE_20);
    margin: 0px;
}

#home-link.active {
    margin: 0px;
}

#dmi-logo {
    width: 250px;
}

#nav-link-section {
    margin: 30px;
    display: grid;
    grid-template-columns: max-content;
    gap: 14px;
}

#nav-link-title {
    color: var(--NORTH_SEA_BLUE_100);
    font-size: 24px;
    font-weight: 500;
    line-height: 34px;
    letter-spacing: 0%;
}

.nav-link {
    color: var(--NORTH_SEA_BLUE_140);
    text-decoration: none;
    padding: 20px;
    border: 1px solid var(--NORTH_SEA_BLUE_20);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    line-height: 18px;
    letter-spacing: 0%;
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 10px;
}

.nav-link:hover {
    color: var(--NORTH_SEA_BLUE_140);
    border: 2px solid var(--NORTH_SEA_BLUE_50);
    margin: -1px;
}

.nav-link.active {
    color: var(--NORTH_SEA_BLUE_140);
    border: 2px solid var(--NORTH_SEA_BLUE_50);
    margin: -1px;
}

.nav-link.active:hover {
    color: var(--NORTH_SEA_BLUE_140);
    margin: -1px;
}

.nav-link-img {
    width: auto;
    height: 20px;
}

.center-children {
    display: flex;
    justify-content: center;
    align-items: center;
}

.Consortium-logos {
    display: grid;
    place-items: center;
    grid-template-columns: min-content min-content min-content;
    gap: 10px;
    margin-bottom: 20px;
}

.Consortium-logos-img {
    width: 40px;
    height: auto; /* Adjust the size as needed */
}

#main-section {
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

#tabs-section {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    gap: 20px;
    margin: 20px 0px;
}

.tab-button {
    font-size: 16px;
    font-optical-sizing: auto;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    line-height: 26px;
    letter-spacing: 0%;
    text-align: center;
    color: var(--NORTH_SEA_BLUE_140);
    background-color: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 3px 0px;
    min-width: 125px;
    height: max-content;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: var(--SINASAPPEL_ORANGE);
    transition: width 0.3s ease, left 0.3s ease;
}

.tab-button:hover {
    font-weight: 500;
    background-color: transparent;
}

.tab-button:hover::after {
    width: 50%;
    left: 25%;
}

.tab-button.active {
    font-weight: 500;
}

.tab-button.active::after {
    width: 30%;
    left: 35%;
}

.tab-button.active:hover::after {
    width: 50%;
    left: 25%;
}

.Select-menu-outer {
    top: auto !important;
    bottom: 100% !important;
    width: 100% !important; /* Ensure the dropdown menu stretches to the full width */
    position: absolute !important; /* Ensure the dropdown menu is positioned correctly */
    z-index: 1000; /* Ensure the dropdown menu appears above other elements */
    max-height: 300px !important; /* Adjust this value to show more items */
    overflow-y: auto !important; /* Add a scrollbar if the content exceeds the max height */
    box-sizing: border-box;
}
.Select-clear-zone {
    display: block !important;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 1001; /* Ensure the 'x' button appears above other elements */
}
.Select-option {
    color: var(--primary-color-dark);; /* Change this to your desired color */
}

#map-slicer-section {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin: 0px -5px;
}

.map-slicer-group {
    width: 45%;  /* used to be calc(50% - 10px) -> doesn't work for weird CSS reasons. Couldn't reproduce the bug. */
    margin: 0px 40px 40px 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.map-slicer {
    background-color: var(--NORTH_SEA_BLUE_20);
    border: 1px solid var(--NORTH_SEA_BLUE_30);
    border-radius: 5px;
    cursor: pointer;
}

.map-slicer-title {
    color: var(--NORTH_SEA_BLUE_100);
    font-size: 24px;
    font-weight: 500;
    line-height: 34px;
    letter-spacing: 0%;
    text-align: center;
}

#graph-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); <- cool but no */
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.graph-grid-item {
    background-color: var(--off-white-color);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0px 0px 5px var(--NORTH_SEA_BLUE_20);
}

#kpi-coeff-section {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.kpi-coeff-row {
    background-color: var(--off-white-color);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 0px 5px var(--NORTH_SEA_BLUE_20);
    grid-template-columns: 1fr;
    display: grid;
    align-items: center;
}

.kpi-coeff-row-inner {
    display: grid;
    grid-template-columns: min-content 150px max-content;
    gap: 10px;
    margin: 0px auto;
    align-items: center;
}

.kpi-coeff-header {
    text-align: center;
    margin-bottom: 10px;
}

.kpi-coeff-row-inner p {
    margin: 0;
}

.kpi-coeff-input {
    width: 50px;
    height: 30px;
    border: 1px solid var(--NORTH_SEA_BLUE_20);
    border-radius: 10px;
    text-align: center;
}

.kpi-coeff-input:disabled {
    background-color: var(--LIGHT_GREY);
    color: var(--DARK_GREY);
}

.kpi-coeff-slider {
    margin-top: 20px;
}

#thema-section {
    display: flex;
    flex-direction: column;
    height: 1000px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.thema {
    margin-bottom: 30px;
}

.thema-header-section {
    display: grid;
    grid-template-columns: 20px max-content;
    gap: 10px;
}

.indicator-row.disabled {
    color: var(--DARK_GREY);
    cursor: not-allowed;
}

